import React from 'react'
import {Link} from "react-router-dom"
import "./Nav.css"
export default function Nav(props) {
    let {navList}=props
    return (
        <div className="nav">
           {
               navList.map(item=>{
                   return <Link key={item.id} to={"/list/"+item.id}>{item.catename}</Link>
               })
           }

        </div>
    )
}
